add page_get_owner_and_reference() related ASSERT()s
authorJan Beulich <jbeulich@suse.com>
Thu, 13 Aug 2015 12:47:06 +0000 (14:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Aug 2015 12:47:06 +0000 (14:47 +0200)
commitd1f1380591e6abe7101228346158e15248cc4cb5
tree353feadf0aeeb05dc7da163799224ac4e1a45b4f
parent421850a06d54dbe48f8e5979d3453428071db4fd
add page_get_owner_and_reference() related ASSERT()s

The function shouldn't return NULL after having obtained a reference,
or else the caller won't know to drop it.

Also its result shouldn't be ignored - if calling code is certain that
a page already has a non-zero refcount, it better ASSERT()s so.

Finally this as well as get_page() and put_page() are required to be
available on all architectures - move the declarations to xen/mm.h.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/arm/guestcopy.c
xen/arch/arm/mm.c
xen/arch/x86/mm.c
xen/common/grant_table.c
xen/include/asm-arm/mm.h
xen/include/asm-x86/mm.h
xen/include/xen/mm.h